Completed
Push — master ( 058858...304cc0 )
by Ajeh
04:20
created

fs.copy   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
c 1
b 0
f 0
nc 2
dl 0
loc 10
rs 9.4285
nop 1
1
const fs = require('fs-extra');
2
3
const source = './dist/vuejs-dialog.min.js';
4
const dest = './docs/js/vuejs-dialog.min.js';
5
6
fs.copy(source, dest, function (err) {
7
8
    if (err)
9
    {
10
        return console.error(err);
11
    }
12
13
    console.log('Copied to ' + dest);
0 ignored issues
show
Best Practice introduced by
There is no return statement in this branch, but you do return something in other branches. Did you maybe miss it? If you do not want to return anything, consider adding return undefined; explicitly.
Loading history...
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
14
15
});